package com.kay.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import java.util.List;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/8/27$ 22:49$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/8/27$ 22:49$
 */
@ConfigurationProperties(prefix = "rpc-server")
@Configuration
@EnableConfigurationProperties(RPCServerConfig.class)
@Data
@Primary
public class RPCServerConfig{
    private List<String> ipList;
    private List<Integer> portList;
}
